﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Contests.master" AutoEventWireup="false" CodeFile="ContestHome.aspx.vb" Inherits="ContestHome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<h2>Welcome to the site, please log in</h2>
</AnonymousTemplate>

<LoggedInTemplate>
<fieldset>
<legend>Tags</legend>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="Tag" HeaderText="Tag" SortExpression="Tag" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT * FROM [QContestTag]"></asp:SqlDataSource>
</fieldset>
<fieldset>
<legend>Tag Test</legend>
<div class="CloudBox">
<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT * FROM [QContestTag]"></asp:SqlDataSource>
        <asp:Literal ID="CloudMarkup" runat="server"></asp:Literal>
</div>
</fieldset>

<fieldset>
<legend>Ratings for  Contests</legend>
</fieldset>

</LoggedInTemplate>
</asp:LoginView>
</asp:Content>

